import { reactive } from "vue";

const store = {
    state: reactive({
        message: "hello",
        wordList: [],
    }),

    setMessage(val) {
        this.state.message = val;
    },
    setWordList(val) {
        this.state.wordList = val;
    }
};

// 导出
export default store